<?php
/**
 * Created By PhpStorm
 * Author: patrick wu
 * Date: 2020/11/25
 * Time: 10:53
 */
namespace App\Http\Model\Mysql;

use Illuminate\Database\Eloquent\Model;

class ShortGoodModel extends Model
{

    protected $table    =   'mini_short_product';

    protected $guarded  =   [];

    protected $dateFormat   =   'U';

    /**
     * 定义商品表
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
     */
    public function product()
    {
        return $this->hasOne(ProductModel::class, 'id', 'good_id');
    }
}
